package com.atguigu.feign;

import com.atguigu.entity.OrderInfo;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;
@FeignClient(value = "shop-order")
public interface OrderFeignClient {

    //订单确认信息
    @GetMapping("/order/confirm")
    public RetVal<Map<String,Object>> confirm();

    //3.根据订单id获取订单信息
    @GetMapping("/order/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);

    //5.给秒杀提供的提交订单数据接口
    @PostMapping("/order/saveSeckillOrder")
    public Long saveSeckillOrder(@RequestBody OrderInfo orderInfo);
}
